package swarch.messageflow;

import java.util.ArrayList;
import java.util.List;

public class AssessmentHelper {
	private static List<Assessment> assessmentList = new ArrayList<Assessment>();

	static {
		assessmentList
				.add(new Assessment(
						"MIYAGI",
						38.268853,
						140.872149,
						"7 April, 2011",
						"Sebastian",
						"Internet was working when we got here, Most municipalty office had no need for internet or were already provided",
						"none besides HCOs",
						"Some phone line cut by fallen tree in the area hit by storm",
						"GSM is working everywhere at this date"));
		assessmentList
		.add(new Assessment(
				"FUGUSHIMA",
				37.760581,
				140.473545,
				"8 April, 2011",
				"John Lock",
				"Internet is working fine.",
				"HCOs",
				"Residents living within 30km (18 miles) have been advised to leave the area, or to stay indoors, and try to make their homes airtight.",
				"GSM is working"));
	}

	public static Assessment findAssessmentById(String assessId) {
		int size = assessmentList.size();
		Assessment a;
		for (int i = 0; i < size; i++) {
			a = assessmentList.get(i);
			if (a.getAssessId().equals(assessId)) {
				return a;
			}
		}
		return null;
	}
}
